import {createBrowserRouter,Navigate} from 'react-router-dom'

import Shangjia from '../component/Shangjia'
import List from '../component/List'
const router=createBrowserRouter([
    {
        path:'/',
        element:<Shangjia/>
    },
    {
        path:'/list',
        element:<List/>
    },
    {
        path:'/',
        element:<Navigate to='/shangjia'/>
    },
])

export default router